/**
 * 
 */
package com.p2p.trans.client.enums;

import com.p2p.base.model.Money;


/**
 * @author ruiqi
 *
 */
public class AccountTransConstEnum {
	/** 默认科目-公司 */
    public static String DEFAULT_ACCOUNT_TITLE_CORPORATE = "202001";

    /** 默认科目-个人 */
    public static String DEFAULT_ACCOUNT_TITLE_PRIVATE   = "201001";

    /** 基金科目-公司 */
    public static String FUND_ACCOUNT_TITLE_CORPORATE    = "202010";

    /** 基金科目-个人 */
    public static String FUND_ACCOUNT_TITLE_PRIVATE      = "201010";

    /** 默认的交易场所 */
    public static String DEFAULT_INSTITUTION             = "3008";

    /** 人民币代码 */
    public static String RMB_CURRENCY                    = "156";

    /** 总账账户号 */
    public static  String GENERAL_ACCOUNT_NO              = "208801";

    /** 中间账户号 */
    public static String MIDDLE_ACCOUNT_NO               = "20880063000888880156";

    /** 假账号 */
    public static String DUMMY_ACCOUNT                   = "dummy";

    /** 冲销标记 */
    public static String DUMMY_WRITE_OFF                 = "dummy-off";

    /** 冲正标记 */
    public static String DUMMY_WRITE_RIGHT               = "dummy-right";

    /** 默认操作员 */
    public static String DEFAULT_OPERATOR                = "888888";

    /** 用户ID长度 */
    public static int    USER_ID_LENGTH                  = 16;

    /** 0金额（默认币种），只可用于比较，不可 xxx = ZERO_AMOUNT */
    public static Money  ZERO_AMOUNT                     = new Money(0, 0);

    /** 负债类科目前缀 */
    public static String LIABILITY_TITLE_PREFIX          = "2";

    /** 性能日志阈值 */
    public static int    PREF_THRESHOLD                  = 300;

    /** 链接超时时长-15秒 */
    public static long   TIME_OUT_MILLIS                 = 15 * 1000;

    /** 锁账户超时最小值 */
    public static int    MIN_LOCK_TIMEOUT                = 0;

    /** 锁账户超时最大值 */
    public static int    MAX_LOCK_TIMEOUT                = 15;

    public static String TRUE_FLAG                       = "T";
    public static String FALSE_FLAG                      = "F";

    /** 是否支持缓冲记账 */
    public static String SUPORT_CACHE                    = TRUE_FLAG;

    /** 账户繁忙时锁账户动作会超时*/
    public static String LOCK_TIMEOUT                    = TRUE_FLAG;

    /** 账户繁忙时锁账户动作不会超时*/
    public static String LOCK_NO_TIMEOUT                 = FALSE_FLAG;
}
